/**
 * Created by Administrator on 2016/12/14.
 */
var LLL = {};
LLL.addTransitionEnd = function(dom,callback){
    if(dom && typeof dom == 'object'){
        dom.addEventListener('webkitTransitionEnd',function(){
            callback && callback();
        });
        dom.addEventListener('TransitionEnd',function(){
            callback && callback();
        });
    }
}
LLL.tap = function(dom,callback){
    if(dom&&typeof  dom =='object'){
        var ismove = false;
        var startTime;
        dom.addEventListener('touchstart',function(e){
            startTime = Date.now()
        });
        dom.addEventListener('touchmove',function(e){
            ismove = true;
        });
        dom.addEventListener('touchend',function(e){
            if(!ismove||Date.now()-startTime<150){
                callback &&  callback(e);
            }
        })
    }
}